package com.practice2.exercise;

public class User {
    private String name;

    private  int id;

    public String getName()  {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", id=" + id +
                '}';
    }


    public void show() {
        System.out.println(name+id);
    }

}
